package cn.doctor.assistant.pad.ui.ziliao;

import com.blunderer.materialdesignlibrary.fragments.ViewPagerWithTabsFragment;
import com.blunderer.materialdesignlibrary.handlers.ViewPagerHandler;

/**
 * Created by Administrator on 2016/3/21.
 * 资料
 */
public class InformationFragment extends ViewPagerWithTabsFragment {

    PatientListFragment mPatientInfo;
    RecordListFragment mRecordInfo;

    public static InformationFragment newInstance() {
        return new InformationFragment();
    }

    @Override
    protected boolean expandTabs() {
        return false;
    }

    @Override
    public int defaultViewPagerPageSelectedPosition() {
        return 0;
    }

    @Override
    public ViewPagerHandler getViewPagerHandler() {
        mPatientInfo = new PatientListFragment();
        mRecordInfo = new RecordListFragment();

        return new ViewPagerHandler(getActivity())
                .addPage("病人资料库", mPatientInfo)
                .addPage("病案资料库", mRecordInfo);
    }


}

